/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoopp.qcoinpay;

import android.app.Activity;
import android.os.Build.VERSION;
import com.qihoopp.framework.HttpCreater;
import com.qihoopp.framework.HttpLoadThread;
import com.qihoopp.framework.HttpLoaderCallback;
import com.qihoopp.framework.HttpRequestMode;
import com.qihoopp.framework.LogUtil;
import com.qihoopp.framework.MD5;
import java.util.HashMap;
import java.util.Map;

public final class v {
    private Activity b;
    private HttpLoaderCallback c;
    public static final String[] a = { "10", "20", "30", "50", "100", "300", "500" };

    public v(Activity paramActivity, HttpLoaderCallback paramHttpLoaderCallback) {
        this.b = paramActivity;
        this.c = paramHttpLoaderCallback;
    }

    public final HttpLoadThread a(String paramString1, String paramString2, String paramString3) {
        HashMap localHashMap;
        (localHashMap = new HashMap()).put("bank_code", "MOBILE_QCOIN");
        String str1 = Build.VERSION.SDK_INT;
        localHashMap.put("os_version", str1);
        String str2 = "";
        try {
            Object localObject = null;
            paramString1 = null;
            str2 = cw.a(new cv(paramString3.substring(0, 16), paramString3.substring(16, paramString3.length()),
                    "AES/CBC/PKCS5Padding").a(dc.a("360pay360" + paramString1)));
        } catch (Exception localException) {
            LogUtil.d("QcoinPay", "Exception", localException);
        }
        localHashMap.put("qid_paypwd", str2);
        localHashMap.put("token", paramString2);
        String str3 = System.currentTimeMillis();
        localHashMap.put("ts", str3);
        paramString1 = MD5.getMD5("bank_code=MOBILE_QCOIN&os_version=" + str1 + "&qid_paypwd=" + str2 + "&token="
                + paramString2 + "&ts=" + str3 + paramString3);
        localHashMap.put("sign", paramString1);
        return new HttpCreater().create(this.b, HttpRequestMode.POST, "https://api.360pay.cn/securePay/payOrder",
                localHashMap, null, this.c);
    }
}